package com.wclass.service;

import com.wclass.common.ReturnObject;
import com.wclass.entity.UserAmountBill;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 用户佣金编辑 服务类
 * </p>
 *
 * @author 张浩高
 * @since 2018-12-20
 */
public interface IUserAmountBillService extends IService<UserAmountBill> {


    /**
     * 提现申请
     *
     * @param userId
     * @param amount
     * @param cardholder
     * @param bankName
     * @param bankNo
     * @return
     */
    ReturnObject withdrawalApply(Long userId, Long amount, String cardholder, String bankName, String bankNo);


    /**
     * 提现成功
     *
     * @param userId
     * @param withdrawId
     * @return
     */
    ReturnObject withdrawalSuccess(Long userId, Long withdrawId,Long payAmount);


    /**
     * 提现失败
     *
     * @param userId
     * @param withdrawId
     * @return
     */
    ReturnObject withdrawalFailure(Long userId, Long withdrawId);

}
